package chapter7;

import java.util.Locale;

/**
 * 获取Java国际化所支持的国家
 */
public class LocaleList {
    public static void main(String[] args) {
        Locale[] locales = Locale.getAvailableLocales();
        for (int i = 0; i < locales.length; i++) {
            System.out.println(locales[i].getDisplayCountry()
            + "=" + locales[i].getCountry() + " "
            + locales[i].getDisplayLanguage()
            + "=" + locales[i].getLanguage());
        }
    }
}
